﻿using System;

class NumberConversion
{
    static void Main()
    {
        //Exercise 11.
        //Write a program that reads a number and prints it as a decimal number, hexadecimal number, percentage and in 
        //scientific notation. Format the output aligned right in 15 symbols.

        Console.Write("Enter a number: ");
        int number = int.Parse(Console.ReadLine());

        Console.WriteLine("As a decimal number: {0,15}", number.ToString("D"));
        Console.WriteLine("As a hexadecimal number: {0,15}", number.ToString("X"));
        Console.WriteLine("As a percentage: {0,15}", number.ToString("P2"));
        Console.WriteLine("In scientific notation: {0,15}", number.ToString("E5"));
    }
}

